package com.neborosoft.FlyingDog.android;

import android.content.Context;
import com.neborosoft.lib.collections.cache.CacheDirectoryPathGenerator;
import com.nostra13.universalimageloader.utils.StorageUtils;

/**
 * Project: FlyingDog
 * User: stikhonenko
 * Date: 2/25/13
 * Time: 4:34 PM
 */
public class AndroidCachingDirectoryProvider implements CacheDirectoryPathGenerator{
    private Context context;

    public AndroidCachingDirectoryProvider(Context context) {
        this.context = context;
    }

    @Override
    public String getCachingDirectory() {
        return StorageUtils.getCacheDirectory(context).getAbsolutePath();
    }
}
